home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / DTML-MATH.STX < prev    next >
Encoding:
Text File  |  2000-10-31  |  1.8 KB  |  73 lines

  1. math: DTML Math Functions
  2.  
  3.   The 'math' module provides trigonometric and other math
  4.   functions. It is a standard Python module.
  5.  
  6.   Functions
  7.  
  8.     acos(x) -- Return the arc cosine of *x*.
  9.  
  10.     asin(x) -- Return the arc sine of *x*.
  11.  
  12.     atan(x) -- Return the arc tangent of *x*
  13.  
  14.     atan2(x, y) -- Return *atan(y / x)*. 
  15.  
  16.     ceil(x) -- Return the ceiling of *x* as a real.
  17.  
  18.     cos(x) -- Return the cosine of *x*
  19.  
  20.     cosh(x) -- Return the hyperbolic cosine of *x*.
  21.  
  22.     exp(x) -- Return 'e**x'
  23.  
  24.     fabs(x) -- Return the absolute value of the real *x*.
  25.  
  26.     floor(x) -- Return the floor of *x* as a real.
  27.  
  28.     fmod(x, y) -- Return fmod(x, y), as defined by the platform C
  29.       library. Note that the Python expression *x % y* may not return the
  30.       same result.
  31.  
  32.     fexp(x) -- Return the mantissa and exponent of *x* as the pair (m, e). m
  33.       is a float and e is an integer such that 'x == m * 2**e'. If x is zero,
  34.       returns (0.0, 0), otherwise 0.5 <= abs(m) < 1.
  35.  
  36.     hypot(x, y) -- Return the Euclidean distance, sqrt(x*x + y*y). 
  37.  
  38.     ldexp(x, y) -- Return x * (2**i). 
  39.  
  40.     log(x) -- Return the natural logarithm of *x*.
  41.  
  42.     log10(x) -- Return the base-10 logarithm of *x*.
  43.  
  44.     modf(x) -- Return the fractional and integer parts of x. Both results
  45.       carry the sign of x. The integer part is returned as a real.
  46.  
  47.     pow(x, y) -- Return *x* to the power of *y*.
  48.  
  49.     sin(x) -- Return the sine of *x*.
  50.  
  51.     sinh(x) -- Return the hyperbolic sine of *x*.
  52.  
  53.     sqrt(x) -- Return the square root of *x*.
  54.  
  55.     tan(x) -- Return the tangent of *x*.
  56.  
  57.     tanh(x) -- Return the hyperbolic tangent of *x*.
  58.  
  59.   Attributes
  60.  
  61.     e -- The mathematical constant *e*.
  62.  
  63.     pi -- The mathematical constant *pi*.
  64.  
  65.   See Also
  66.  
  67.     "Python 'math' module":http://www.python.org/doc/current/lib/module-math.html
  68.  
  69.  
  70.  
  71.  
  72.  
  73.